import http from "./http";

export const listComments = (_page, _size) => {
    return http.requestGet("/admin/comment/list/" + _page + "/" + _size);
}

export const deleteComment = (_id) => {
    return http.requestDelete("/admin/comment/" + _id);
}

export const topComment = (_id) => {
    return http.requestPut("/admin/comment/top/" + _id);
}

export const getCommentCount = () => {
    return http.requestGet("/admin/comment/count");
}